package com.util;

import java.util.Enumeration;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

public class HashMapBinder {
	HttpServletRequest req = null;
	public HashMapBinder(HttpServletRequest req){
		this.req = req;
	}
	public void bind(Map<String, Object> pMap)
	{
		pMap.clear();
		//<input type="text" name="id" size="20">
		Enumeration en = req.getParameterNames();
		String key = "";
		while(en.hasMoreElements()){
			key = (String)en.nextElement();
			pMap.put(key, HangulConversion.toKor(req.getParameter(key)));
		}
//		req.getParameter("id");
	}
}








